package org.chimi.rr4s.domain;

import org.springframework.data.neo4j.annotation.EndNode;
import org.springframework.data.neo4j.annotation.GraphId;
import org.springframework.data.neo4j.annotation.Indexed;
import org.springframework.data.neo4j.annotation.RelationshipEntity;
import org.springframework.data.neo4j.annotation.StartNode;

/**
 * @author Choi, Beom Kyun
 */
@RelationshipEntity
public class Following {

	@GraphId
	private Long graphId;

	@StartNode
	private User follower;

	@EndNode
	private User followee;

	@Indexed(indexName = "FOLLOWING_TIME")
	private long followingTimeValue;

	public Long getGraphId() {
		return graphId;
	}

	public User getFollower() {
		return follower;
	}

	public User getFollowee() {
		return followee;
	}

	public long getFollowingTimeValue() {
		return followingTimeValue;
	}

}
